<%--
  Created by IntelliJ IDEA.
  User: 黄鹏飞
  Date: 2022/12/5
  Time: 14:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@include file="admin.jsp"%>
<html>
<head>
    <title>管理员操作平台</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
    <script src="/js/adminteacherinfo.js"></script>
</head>
<body>
<div class="container mt-3">
    <table class="table table-hover">
        <tr>
            <td>姓名</td>
            <td>密码</td>
            <td>执教班级</td>
        </tr>
        <c:forEach items="${list2}" var="teacher">
            <tr>
                <td>${teacher.name}</td>
                <td>${teacher.password}</td>
                <td>${teacher.t_class}</td>
                <td>
                    <a href="/adminteacher?method=update&name=${teacher.name}&t_class=${teacher.t_class}&page=${currentpage}">修改</a>
                    <a href="/adminteacher?method=delete&name=${teacher.name}&t_class=${teacher.t_class}&page=${currentpage}">删除</a>
                </td>
            </tr>
        </c:forEach>
        <tr><td><a href="/admin/addteacher.jsp">添加</a></td></tr>
    </table>
</div>
<hr>
<%@include file="/bottom.jsp"%>
</body>
</html>
